package com.xckx.Visio.Docs.PageSheet;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2007</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

import java.util.*;

public class PageProps {
  private float pageWidth;
  private float pageHeight;
  private float shdwOffsetX;
  private float shdwOffsetY;
  private float pageScale = 1.0f;
  private float drawingScale = 1.0f;
  private int drawingSizeType;
  private int drawingScaleType;
  private int inhibitSnap;
  private int UIVisibility;
  private int ShdwType;
  private float ShdwObliqueAngle;
  private float ShdwScaleFactor;

  public PageProps() {
  }

  public float getPageWidth() {
    return pageWidth;
  }

  public float getPageHeight() {
    return pageHeight;
  }

  public float getShdwOffsetX() {
    return shdwOffsetX;
  }

  public float getShdwOffsetY() {
    return shdwOffsetY;
  }

  public float getPageScale() {
    return pageScale;
  }

  public float getDrawingScale() {
    return drawingScale;
  }

  public int getDrawingSizeType() {
    return drawingSizeType;
  }

  public int getDrawingScaleType() {
    return drawingScaleType;
  }

  public int getInhibitSnap() {
    return inhibitSnap;
  }

  public int getUIVisibility() {
    return UIVisibility;
  }

  public int getShdwType() {
    return ShdwType;
  }

  public float getShdwObliqueAngle() {
    return ShdwObliqueAngle;
  }

  public float getShdwScaleFactor() {
    return ShdwScaleFactor;
  }

  public float getScaleRatio() {
    if (pageScale != 0.0f)
      return drawingScale / pageScale;
    else
      return 1.0f;
  }


  //

  public void setPageWidth(float width) {
    pageWidth = width;
  }

  public void setPageHeight(float height) {
    pageHeight = height;
  }

  public void setShdwOffsetX(float x) {
    shdwOffsetX = x;
  }

  public void setShdwOffsetY(float y) {
    shdwOffsetY = y;
  }

  public void setPageScale(float scale) {
    pageScale = scale;
  }

  public void setDrawingScale(float scale) {
    drawingScale = scale;
  }

  public void setDrawingSizeType(int type) {
    drawingSizeType = type;
  }

  public void setDrawingScaleType(int type) {
    drawingScaleType = type;
  }

  public void setInhibitSnap(int inhibit) {
    inhibitSnap = inhibit;
  }

  public void setUIVisibility(int visibility) {
    UIVisibility = visibility;
  }

  public void setShdwType(int type) {
    ShdwType = type;
  }

  public void setShdwObliqueAngle(float angle) {
    ShdwObliqueAngle = angle;
  }

  public void setShdwScaleFactor(float factor) {
    ShdwScaleFactor = factor;
  }

}